package com.alit.face.koala.controller.subject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alit.face.koala.app.data.AppResponse;
import com.alit.face.koala.service.subject.SubjectService;

@RestController
@RequestMapping("subjects")
public class SubjectsController {
  @Autowired
  private SubjectService subjectService;

  /**
   * 显示所有组信息 
   */
  @RequestMapping("group/list")
  public AppResponse groupList(int subject_type, int size, int page) {
    return subjectService.groupList(subject_type, size, page);
  }

}
